/**
 * 判断是否是http或者https链接
 * @param url
 * @returns {boolean}
 */
function isHttpUrl(url) {
  const httpRegex = /^https?:\/\/.+$/;
  return httpRegex.test(url);
}

export default {
  isHttpUrl
};
